<?php
if($idMenu==5){
	$qr = mysql_query("SELECT name,content FROM info WHERE `delete`=0 AND status=1 AND menu_id LIKE '%,5,%' ");
	$row = mysql_fetch_array($qr);
	$view .= '<div id="xeco"><div style="text-align:center; width:100%; margin-bottom:15px;"><img src="images/title1.gif" alt="" /> <span style="color:#3f0102; font-size:26px"> &nbsp; <strong>'.$row['name'].'</strong> &nbsp; </span> <img src="images/title2.gif" alt="" /></div></div>  <div style="clear:both; margin-bottom:50px; line-height:22px;">'.$row['content'].'</div>';
}

$view .= '<div id="xeco"><div style="text-align:center; width:100%; margin-bottom:15px;"><h1 style="font-size:26px; color:#3f0102"><img src="images/title1.gif" alt="" /> &nbsp; '.$menu['name'].' &nbsp; <img src="images/title2.gif" alt="" /></h1></div></div>';

$from = (($page - 1) * max_news);
$select = 'id,name,name_rewrite,url_hinh,description,content,date_create,menu_id';
$table = 'info';
$where = "`delete`=0 AND status=1 AND menu_id LIKE '%,15,%'";
$limit = "LIMIT {$from},".max_news;

$view .= '<div id="listinfo">';
$qr = $tc->list_item($select,$table,$where,$limit);
while($row = mysql_fetch_array($qr)){
	$url_link = $tc->link_detail($row['menu_id']);
	($row['url_hinh']!= '') ? $url_hinh = url_hinh_info_thumbs.$row['url_hinh'] : $url_hinh='upload/no-image.jpg';
	$view .= "<div class=\"item\">
		<a href=\"{$url_link}{$row['name_rewrite']}.html\"><img src=\"{$url_hinh}\" alt=\"{$row['name']}\" />
		<h2>{$row['name']}</h2></a>
		<p>{$row['description']}</p>
		<div style=\"height:10px; clear:both\"></div>
	</div>";
}
mysql_free_result($qr);
$phantrang = $tc->phantrang($menu['url'],$page,max_news,'id',$table,$where);
$view .= "</div><div id=\"phantrang\">{$phantrang}</div>";
echo $view;
?>
<div style="clear:both">
<a href="mua-ban-trao-doi.html"><span style="font-size:15px; font-weight:bold; color:#900; padding:5px 0">Bấm vào đây gửi thông tin trao đổi xe</span></a>
</div>